package com.bamboocloud.im.controller;

import com.bamboocloud.im.entity.Dept;
import com.bamboocloud.im.service.DeptClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import java.util.List;

/**
 * @Auther xuwen
 * @Date 2021/12/9 16:19
 * @Version 1.0
 */
@RestController
public class DeptConsumerController {
    @Autowired
    private DeptClientService service;
    @RequestMapping("/consumer/dept/add")
    public boolean add(Dept dept){
        return this.service.add(dept);
  }
     @RequestMapping("/consumer/dept/get/{id}")
     public Dept get(@PathVariable("id") Long id){
        return this.service.get(id);
}
    @RequestMapping("/consumer/dept/gets")
    public List<Dept> gets(){
        return this.service.gets();
        }

/*    @RequestMapping("consumer/dept/delect/{id}")
    public boolean delete(@PathVariable("id") Long id){

    }*/
/*    @RequestMapping("/consumer/dept/update")
    public Dept update(Dept dept){

    }*/


}
